<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="box" class="father">我是一个box</div>
  <div class="father">我是第二个box</div>
  <script>
    let tagList = document.getElementsByTagName('div')
    console.log(tagList, 'tagList');
    let divList = document.getElementsByClassName('father')
    console.log(divList, 'divList');
    let box = document.querySelector('#box')
    console.log(box, 'box');
    let box2 = document.getElementById('box')
    console.log(box2, 'box2');
    let father = document.querySelector('.father')
    console.log(father, 'father');
    let fatherList = document.querySelectorAll('.father')
    console.log(fatherList, 'fatherList');
    
    
  </script>
</body>
</html>